/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package calculadora_basica;

import java.util.Scanner;

/**
 *
 * @author Izzabel
 */
public class Calculadora_Basica {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int op;
        do{
            
            System.out.println("*******MENU*******");
            System.out.println("OPERACIONES BASICAS");
            System.out.println("1. Suma");
            System.out.println("2. Resta");
            System.out.println("3. Multiplicación");
            System.out.println("4.  División");
            System.out.println("5.  Salir");
            System.out.print("Elije una opción: ");
            op=sc.nextInt();

                switch(op){
                case 1:
                    Suma sum = new Suma();          
                    System.out.println("La suma es: "+ sum.suma); 
                break;
                    case 2:
                        Resta res = new Resta();
                        System.out.println("La resta es: "+ res.resultado );
                break;
                    case 3:
                    multiplicacion mult=new multiplicacion();
                    System.out.println("La multiplicacion es: "+ mult.multiplicacion());
                break;
                case 4:
                    division obj=new division();
                    System.out.println("la division es:"+obj.division()); 
                break;
                case 5:
                    System.out.println("bye bye!!");
                break;
                default:
                    System.out.println("...Elije una opción válida...");
                }

            }while(op!=5);            
        }
    
}
